<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>5-浮动布局一</title>
    <style>
        *{
            margin:0;
            padding:0;
            font-family: 'Micorsoft yahei';
        }
        body div{
            width: 200px;
            height: 200px;
            line-height: 200px;
            color: #fff;
            font-size:30px;
            font-weight: bold;
            text-align: center;
        }
        /* 原来按照标准流排序的 */
        body div:nth-of-type(1){
            background: red;
        }
        /* 
            脱标：
                向右浮动
                向左浮动 
                出现的状况：会叠加在标准流元素上面，本身在标准流中不占位置
         */
        body div:nth-of-type(2){
            background: blue;
            float: right;
            float: left;
        }
        body div:nth-of-type(3){
            background: black;
        }
    </style>
</head>
<body>
    <div>中国</div>
    <div>美国</div>
    <div style="width:220px;">日本</div>
</body>
</html>